import { NgModule, ErrorHandler } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { IonicApp, IonicModule, IonicErrorHandler } from 'ionic-angular';
import { MyApp } from './app.component';

import { AboutPage }   from '../pages/about/about';
import { ContactPage } from '../pages/contact/contact';
import { TabsPage }    from '../pages/tabs/tabs';
import { LoginPage }   from '../pages/login/login';
import { RegisterPage }from '../pages/register/register';
import { ForgetPage }  from '../pages/forget/forget';
import { JoinPage }    from '../pages/join/join';

import { MePage }      from '../pages/me/me';
import  {SettingPage}  from '../pages/setting/setting';


import { TradePage }   from '../pages/trade/trade';
import { ResultPage}   from '../pages/result/result';

import { StatusBar } from '@ionic-native/status-bar';
import { SplashScreen } from '@ionic-native/splash-screen';
import { HttpModule } from '@angular/http';
import {IonicStorageModule} from '@ionic/storage';
import { HttpProvider } from '../providers/http/http';
import { HttpServiceProvider } from '../providers/http-service/http-service';
import { UtilProvider } from '../providers/util/util';

@NgModule({
  declarations: [
    MyApp,
    AboutPage,
    ContactPage,
    LoginPage,
    RegisterPage,
    ForgetPage,
    MePage,
    TradePage,
    JoinPage,
    ResultPage,
    TabsPage,
    SettingPage
  ],
  imports: [
    BrowserModule,
    HttpModule,
    IonicModule.forRoot(MyApp, {
        backButtonText: '',
        mode:'ios',
        tabsHideOnSubPages: true
    }),
    IonicStorageModule.forRoot()
  ],
  bootstrap: [IonicApp],
  entryComponents: [
    MyApp,
    AboutPage,
    ContactPage,
    LoginPage,
    RegisterPage,
    ForgetPage,
    MePage,
    TradePage,
    JoinPage,
    ResultPage,
    TabsPage,
    SettingPage
  ],
  providers: [
    StatusBar,
    SplashScreen,
    HttpProvider,
    {provide: ErrorHandler, useClass: IonicErrorHandler},
    HttpServiceProvider,
    UtilProvider
  ]
})
export class AppModule {}
